import java.io.File;
import java.io.IOException;

public class UserData {
	
	
	private String dir1;	//Anime Dir 1
	private String dir2;	//Anime Dit 3
	private Integer icoOpt;	//0 - Keine Icons Verwenden
					//1 - Nur vorhandene Icons verwenden
					//2 - Vorhandene Icons verwenden, ansonsten suchen
					//3 - Immer neue Icons suchen 
	private String icoDir;	//Icon Pfad
	private Boolean rename;	
	private Boolean renameList;	//Liste mit Originaltiteln Anlegen
	private Boolean skipSimilar;
	private Integer questionOrder;	//0 - Erst alle Fragen
							//1 - Einzeln Fragen
							//2 - Niemals Fragen

	public UserData() {

		dir1 = null;
		dir2 = null;
		icoOpt = null;
		icoDir = null;
		rename = null;
		renameList = null;
		skipSimilar = null;
		questionOrder = null;

	}
	
	public UserData(UserData d, int i) throws IOException{
		
		
		
		dir1 = new File(d.getDir1()).listFiles()[i].getCanonicalPath();
		dir2 =new File(d.getDir2()).listFiles()[i].getCanonicalPath();;
		icoOpt = d.getIcoOpt();
		icoDir = d.getIcoDir();
		rename = d.isRename();
		renameList = d.isRenameList();
		skipSimilar = d.isSkipEqual();
		questionOrder = d.getQuestionOrder();
		
		
	}

	public UserData(String _dir1, String _dir2, String _icoDir,
			Integer _icoOpt, Integer _questionOrder, Boolean _reaname,
			Boolean _renameList, Boolean _skipSimiliar) {
		dir1 = _dir1;
		dir2 = _dir2;
		icoOpt = _icoOpt;
		icoDir = _icoDir;
		rename = _reaname;
		renameList = _renameList;
		skipSimilar = _skipSimiliar;
		questionOrder = _questionOrder;
	}

	public String getDir1() {
		return dir1;
	}

	public void setDir1(String dir1) {
		this.dir1 = dir1;
	}

	public String getDir2() {
		return dir2;
	}

	public void setDir2(String dir2) {
		this.dir2 = dir2;
	}

	public int getIcoOpt() {
		return icoOpt;
	}

	public void setIcoOpt(int icoOpt) {
		this.icoOpt = icoOpt;
	}

	public String getIcoDir() {
		return icoDir;
	}

	public void setIcoDir(String icoDir) {
		this.icoDir = icoDir;
	}

	public boolean isRename() {
		return rename;
	}

	public void setRename(boolean rename) {
		this.rename = rename;
	}

	public boolean isRenameList() {
		return renameList;
	}

	public void setRenameList(boolean renameList) {
		this.renameList = renameList;
	}

	public boolean isSkipEqual() {
		return skipSimilar;
	}

	public void setSkipEqual(boolean skipSimiliar) {
		this.skipSimilar = skipSimiliar;
	}

	public Integer getQuestionOrder() {
		return questionOrder;
	}

	public void setQuestionOrder(Integer questionOrder) {
		this.questionOrder = questionOrder;
	}

}
